/*    */ package handling.world.messenger;
/*    */ 
/*    */ import client.MapleCharacter;
/*    */ import java.io.Serializable;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class MapleMessengerCharacter
/*    */   implements Serializable
/*    */ {
/*    */   private static final long serialVersionUID = 6215463252132450750L;
/* 13 */   private String name = "";
/* 14 */   private int id = -1;
/* 15 */   private int channel = -1;
/*    */   private boolean online = false;
/*    */   
/*    */   public MapleMessengerCharacter(MapleCharacter maplechar) {
/* 19 */     this.name = maplechar.getName();
/* 20 */     this.channel = maplechar.getClient().getChannel();
/* 21 */     this.id = maplechar.getId();
/* 22 */     this.online = true;
/*    */   }
/*    */ 
/*    */   
/*    */   public MapleMessengerCharacter() {}
/*    */   
/*    */   public int getChannel() {
/* 29 */     return this.channel;
/*    */   }
/*    */   
/*    */   public boolean isOnline() {
/* 33 */     return this.online;
/*    */   }
/*    */   
/*    */   public void setOnline(boolean online) {
/* 37 */     this.online = online;
/*    */   }
/*    */   
/*    */   public String getName() {
/* 41 */     return this.name;
/*    */   }
/*    */   
/*    */   public int getId() {
/* 45 */     return this.id;
/*    */   }
/*    */ 
/*    */   
/*    */   public int hashCode() {
/* 50 */     int prime = 31;
/* 51 */     int result = 1;
/* 52 */     result = prime * result + ((this.name == null) ? 0 : this.name.hashCode());
/* 53 */     return result;
/*    */   }
/*    */ 
/*    */   
/*    */   public boolean equals(Object obj) {
/* 58 */     if (this == obj) {
/* 59 */       return true;
/*    */     }
/* 61 */     if (obj == null) {
/* 62 */       return false;
/*    */     }
/* 64 */     if (getClass() != obj.getClass()) {
/* 65 */       return false;
/*    */     }
/* 67 */     MapleMessengerCharacter other = (MapleMessengerCharacter)obj;
/* 68 */     if (this.name == null) {
/* 69 */       if (other.name != null) {
/* 70 */         return false;
/*    */       }
/* 72 */     } else if (!this.name.equals(other.name)) {
/* 73 */       return false;
/*    */     } 
/* 75 */     return true;
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\handling\world\messenger\MapleMessengerCharacter.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */